/**
 * Created by zlp on 2017-12-27.
 *
 */

let express = require('express');
let router =  express.Router();
let auth = require("../../app/controller/middleware/auth");
let pages = require("../../app/controller/prod/pages");
let account = require("../../app/controller/prod/account");

/*router.get(['/account/!*'],auth.auth)*/

router.get("/",pages.account.index);
router.get("/fundRecord",pages.account.fundRecord);      //资金记录
router.post("/fundRecord/list",account.fundsRecord.list);//资金记录列表
router.get("/transaction",pages.account.transaction);    //交易记录
router.post("/transaction/list",account.order.list);     //获取交易记录列表
router.get("/earning",pages.account.earning);            //利息记录
router.post("/earning/list",account.interest.list);      //获取利息列表
router.get("/bonus",pages.account.bonus);                //我的佣金
router.post("/bonus/list",account.commission.list);      //获取佣金列表
router.get("/userinfo",pages.account.userinfo);          //个人信息页面
router.post("/userinfo/base",account.userInfo.info);     //获取个人信息
router.post("/update/login/passwd",account.userInfo.updateLoginPasswd); //修改登录密码
router.post("/update/trade/passwd",account.userInfo.updatePayPasswd);   //修改支付密码
router.post("/trade/retrieve",account.userInfo.tradeRetrieve);//找回交易密码step1
router.post("/trade/retrieve_reset",account.userInfo.tradeRetrieveReset);//找回交易密码重置


router.get("/bankcard",pages.account.bankcard);          //银行卡资料
router.post("/bankcard/info",account.bankcard.info);          //银行卡详情
router.post("/bankcard/list",account.bankcard.list);     //获取银行卡信息列表
router.post("/bankcard/add",account.bankcard.add);      //新增银行卡
router.post("/bankcard/update",account.bankcard.update);   //修改银行卡
router.post("/bankcard/delete",account.bankcard.delete);   //解绑银行卡
router.get("/partner",pages.account.partner);            //我的合伙人
router.post("/partner/list",account.child.list);         //获取合伙人列表




module.exports = router;